package com.hwua.service;

import com.hwua.entity.User;

public interface IUserService {
    /**
     * 用户登录页面
     * @param user 用户实体类
     * @return
     * @throws Exception
     */
    public User login(User user) throws Exception;

    /**
     * 注册
     * @param user 从页面传入的name
     * @return
     * @throws Exception
     */
    public boolean register(User user) throws  Exception;

    /**
     * 忘记密码修改密码
     * @param user
     * @return
     * @throws Exception
     */
    public int updatePwd(User user) throws  Exception;

    /**
     * 找回密码
     * @param name
     * @param email
     * @return
     * @throws Exception
     */
    public User upPWD(String name,String email) throws  Exception;
}
